package main

import (
	"fmt"
	"net/http"
	"picupload/config"
	"picupload/controller"
)

func main() {
	fmt.Println("服务启动成功")
	http.HandleFunc("/", controller.UploadHandler)
	http.HandleFunc("/file/", controller.ShowFileHandler)
	http.HandleFunc("/up", controller.UploadFileHandler)
	http.ListenAndServe(config.PORT, nil)
}
